﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Marvin.Data.Linq2Sql;

namespace Marvin.Data.Entities
{
    public class WorkDay : EntityBase
    {
        #region Encapsulating data entity
        protected TWorkDay workDay;
        protected override IDataEntity DataEntity
        {
            get
            {
                return this.workDay as IDataEntity;
            }
            set
            {
                this.workDay = value as TWorkDay;
            }
        }
        #endregion

        #region Properties

        public override int Id
        {
            get
            {
                return workDay.IWorkDayId;
            }

            set
            {
                workDay.IWorkDayId = value;
            }
        }

        public DateTime Date
        {
            get
            {
                return workDay.DDate;
            }
            set
            {
                workDay.DDate = value;
            }
        }

        #endregion
    }
}
